﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _020_021_022事件详解_4窗体初体验
{
    public partial class MyForm : Form
    {
        public MyForm()
        {
            InitializeComponent();
            this.myButton.Click += MyButtonClick;
        }

        private void MyButtonClick(object sender, EventArgs e)
        {
            //this.textBox1.Text = "Hello World";
        }

        private void myButton_Click(object sender, EventArgs e)
        {
            this.textBox1.Text = "Hello World";
        }
    }
}
